home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Documents / NeXTSTEP-faq / 8_ Printing.txt < prev    next >
Text File  |  1996-04-17  |  23KB  |  690 lines

  1.  
  2. Subject: FAQ: 8 - Printing
  3.  
  4.  
  5.  
  6.                                  8 PRINTING
  7.  
  8. 8.1 What printers (laser or otherwise) may be used with NEXTSTEP?
  9.  
  10.    printer, NeXT
  11.  
  12.    Adding supported postscript printers is rather simple:
  13.  
  14.      * Get a serial cable (e.g., Macintosh to LaserWriter Plus), but
  15.        check whether that works with your printer
  16.      * Configure using Print Manager
  17.      * Configure printer communication according to manufacturer's
  18.        recommendations. (9600 baud software flow control).
  19.  
  20.  
  21.    A sample printcap entry needs to be loaded into the netinfo database.
  22.    You can use either niload printcap . , or use NetInfoManager to change
  23.    the br and lp properties of your LaserJet. Using the default baud rate
  24.    and /dev/ttya will also work, for most print jobs (if the printer is
  25.    connected to this port).
  26.  
  27.  
  28.         LaserJet_III: \
  29.         :note=LaserJet_III:ty=HP LaserJet III PostScript: \
  30.         :sd=/usr/spool/NeXT/LaserJet_III:lp=/dev/ttyfa: \
  31.         :lf=/usr/adm/lpd-errs:af=/usr/adm/lp.acct:br=19200:rw:fc\#0000374: \
  32.         :fs\#0000003:xc\#0:xs\#0040040:mx\#0:sf:sb:if=/usr/lib/transcript/psif:
  33.  \
  34.         :of=/usr/lib/transcript/psof:gf=/usr/lib/transcript/psgf: \
  35.         :nf=/usr/lib/transcript/psnf:tf=/usr/lib/transcript/pstf: \
  36.         :rf=/usr/lib/transcript/psrf:vf=/usr/lib/transcript/psvf: \
  37.         :cf=/usr/lib/transcript/pscf:df=/usr/lib/transcript/psdf:
  38.  
  39.  
  40.    HP printer configuration:
  41.  
  42.  
  43.                 auto cont = off         (doesn't matter)
  44.                 I/O = serial
  45.                 serial=rs-232           (for LJ III only)
  46.                 baud rate = 19200       (or whatever baud rate you have
  47.                                         in ni database/printcap)
  48.                 robust xon = on         (doesn't matter)
  49.                 dtr polarity = hi
  50.                 startpage = off         (doesn't matter)
  51.                 language=english
  52.                 ret = med               (you choose for LJ III only)
  53.  
  54.  
  55.    Note that if you modify the printcap this way you cannot reconfigure
  56.    this particular printer entry with PrintManager.
  57.  
  58.    If you are using NEXTSTEP 2.0 and you use remote non-next printers,
  59.    there is a bug that can be simply corrected by doing "dwrite system
  60.    PrinterResolution 1" for each user trying to access non-next printers
  61.    on the network. This not a problem in later NEXTSTEP versions.
  62.  
  63. 8.2 What fonts can I use with NEXTSTEP?
  64.  
  65.    fonts
  66.  
  67.    Properly packaged Type 1 or 3 PostScript fonts will work with
  68.    NEXTSTEP, but certain conversions may be necessary to get them to
  69.    work. Freeware and shareware fonts are available on various ftp
  70.    archives. There are utilities with NEXTSTEP to download fonts into
  71.    postscript printers.
  72.  
  73.    Freeware and shareware Type 1 and 3 fonts in files
  74.    Fonts-1.0-free.tar.Z and Fonts-2.0-sw.tar.Z. Each file unpacks into
  75.    it's own directory. Within each directory is a ReadMe.rtf and a
  76.    Makefile. See the ReadMe.rtf for more font descriptions and
  77.    installation instructions. (You may also find comments in the Makefile
  78.    of interest.) These packages were prepared by Doug Brenner .
  79.  
  80.    The same directory contains fonts Shalom (Hebrew and Yiddish in Old
  81.    Style, Stick and Script typefaces, by Jonathan Brecher, shareware) and
  82.    CyrillicGothic (san serif, by Jay Sekora). These were packaged by
  83.    Jacob Gore to work with the Installer application.
  84.  
  85.  
  86.         WSI-Fonts for NEXTSTEP \#1
  87.                 Abstract Software
  88.                 POB 25045
  89.                 Seattle, WA 98125-1945
  90.                 Voice: 206 361 5080
  91.                 info@abstractsoft.com
  92.  
  93.  
  94.    Some fonts in Type 1 format for NEXTSTEP are also available from Y&Y:
  95.  
  96.  
  97.                 Y\&Y, 106 Indian Hill, Carlisle MA 01741  USA
  98.                 Voice: 800 742 4059
  99.                 Voice: 508 371 3286
  100.                 Fax: 508 371 2004
  101.                 71172,524 on CompuServe
  102.                 71172.524@compuserve.com from InterNet
  103.  
  104.  
  105.    Trilithon Software supplies utilities to convert and install Macintosh
  106.    or PC fonts to NEXTSTEP format.
  107.  
  108.      * MacToPfa: a Mac to NeXT font converter and installer.
  109.      * PfbToPfa: a PC to NeXT font converter and installer.
  110.  
  111.  
  112. 8.3 How can I save my printable documents to a postscript file?
  113.  
  114.    PS to file
  115.  
  116.    Select PRINT from the main menu, then select SAVE from the resulting
  117.    print panel.
  118.  
  119. 8.4 How can I print only the even or odd pages of a document?
  120.  
  121.    odd and even pages even and odd pages duplex printing double sided
  122.    print
  123.  
  124.    I wish print on both sides by feeding the paper through twice.
  125.  
  126.    We must recommend against re-using laser printed paper in your
  127.    printers. The reason is that the toner which is used is not very
  128.    robust, in that when heated again (which happens when you print) it
  129.    can come off the other side of the paper. This causes a mess to
  130.    accumulate in your printer, and probably some pretty rude things to
  131.    happen.
  132.  
  133.    psutils from comp.sources.misc is a much better solution, and includes
  134.    a lot more capabilities, plus it is being updated constantly.
  135.  
  136. 8.5 How do I get banner pages on my printer output?
  137.  
  138.    banner
  139.  
  140.    There is a sample banner prologue file in /usr/lib/NextPrinter that is
  141.    sent to the printer before or after the print job depending on what
  142.    printer attributes are set in NetInfo. Sounds gross, but it isn't.
  143.    Start up NetInfo on your printer machine. Go to the printer directory,
  144.    and open up your local printer by double clicking it. Select the
  145.    append property from Directory menu. Replace the name with BannerAfter
  146.    (or BannerBefore if you want the banner page printed first). The
  147.    select the New Value option, and put in the name of the banner
  148.    prologue file. If you do not wish to do fancy customization of the
  149.    file, simply put the path to the NeXT sample banner file:
  150.  
  151.  
  152.         /usr/lib/NextPrinter/banner.pro
  153.  
  154.  
  155.    Save out the netinfo modifications.
  156.  
  157. 8.6 How do I get [la]TeX files to print correctly on non-NeXT printers?
  158.  
  159.    Latex TeX
  160.  
  161.    If you are printing to a non-NeXT printer from NeXT TeX using dvips,
  162.    make sure you specify the correct resolution (300 dpi, usually),
  163.    either on the command line with -D300, or in the
  164.    /usr/lib/tex/config.ps file with a line that looks like : D 300
  165.  
  166.    If you are printing from within TeXView, you will have to choose
  167.    CustomResolution and enter the correct number (300, usually) because
  168.    of the way DefaultResolution defaults to 0.
  169.  
  170. 8.7 What if I have a PostScript font has not been ported to NEXTSTEP?
  171.  
  172.    PS-Font to NeXT
  173.  
  174.    Many PostScript fonts port to NEXTSTEP with little effort.
  175.  
  176.    The easiest case is a font generated by Fontographer version 3.2 or
  177.    above (a comment near the top of the file should say which program
  178.    generated the font). This version of Fontographer can generate fonts
  179.    "for NEXTSTEP". This means that no hacking of the font is needed, but
  180.    you may need to make some adjustments to make it appear in your font
  181.    panel.
  182.  
  183.    Suppose you were porting the font family Shalom, which consists of
  184.    three faces: Old Style, Stick and Script. Here is the procedure to
  185.    follow:
  186.  
  187.  
  188.      * In a working folder of yours, create folders called:
  189.  
  190.  
  191.                 Shalom-OldStyle.font
  192.                 Shalom-Script.font
  193.                 Shalom-Stick.font
  194.  
  195.  
  196.        Note that the font family name is to the left of the hyphen ("-"),
  197.        and the typeface name is to the right and with no spaces in it.
  198.  
  199.      * Copy the outline font file for each typeface from wherever it is
  200.        into its folder, and give it the name of the folder minus the
  201.        ".font". For example, if you are doing this in a Terminal window:
  202.  
  203.  
  204.         cp /Floppy/ShalomOldStyle.NeXT Shalom-OldStyle.font/Shalom-OldStyle
  205.         cp /Floppy/ShalomScript.NeXT   Shalom-Script.font/Shalom-Script
  206.         cp /Floppy/ShalomStick.NeXT    Shalom-Stick.font/Shalom-Stick
  207.  
  208.  
  209.        If you are working in Workspace Manager's File Viewer,
  210.        double-click on the big fat F icon to open the font directory as a
  211.        folder, then you'll be able to rename files in it.
  212.  
  213.      * Do the same thing with the font metric files, but make the suffix
  214.        ".afm":
  215.  
  216.  
  217.         cp /Floppy/ShalomOldStyle.AFM Shalom-OldStyle.font/Shalom-OldStyle.afm
  218.         cp /Floppy/ShalomScript.AFM   Shalom-Script.font/Shalom-Script.afm
  219.         cp /Floppy/ShalomStick.AFM    Shalom-Stick.font/Shalom-Stick.afm
  220.  
  221.  
  222.      * If there is a "read me" file with the font, or any other
  223.        documentation, copy it into the .font folder too. For example,
  224.        each of the Shalom font folders contains files ReadMe,
  225.        CheatSheet.wn and Sample.wn specific to the typeface.
  226.  
  227.      * Edit the outline and font metric files to make them fit the NeXT
  228.        AppKit's Font Panel, which is what most NextStep applications use
  229.        to let you choose your font.
  230.           + Editing the outline file, e.g.,
  231.             Shalom-OldStyle.font/Shalom-OldStyle:
  232.  
  233.             The original used "ShalomOldStyle" as the font's name, full
  234.             name, and family name. We want the name to be
  235.             "Shalom-OldStyle", the full name "Shalom Old Style", and
  236.             family name just "Shalom".
  237.  
  238.             First, find the lines:
  239.  
  240.  
  241.                         /FullName (ShalomOldStyle) readonly def
  242.                         /FamilyName (ShalomOldStyle) readonly def
  243.  
  244.         and change them to:
  245.  
  246.  
  247.                         /FullName (Shalom Old Style) readonly def
  248.                         /FamilyName (Shalom) readonly def
  249.  
  250.  
  251.             Then, replace all remaining occurrences of the string
  252.             "ShalomOldStyle" with "Shalom-OldStyle".
  253.  
  254.           + Editing the AFM file, e.g.,
  255.             Shalom-OldStyle.font/Shalom-OldStyle.afm.
  256.  
  257.             Find the lines:
  258.  
  259.  
  260.                         FullName ShalomOldStyle
  261.                         FamilyName ShalomOldStyle
  262.  
  263.         and change them to:
  264.  
  265.  
  266.                         FullName Shalom Old Style
  267.                         FamilyName Shalom
  268.  
  269.         Replace all remaining occurrences of the string "ShalomOldStyle"
  270.             with "Shalom-OldStyle".
  271.  
  272.             Repeat this procedure for the remaining typefaces.
  273.      * You now have a font family ready to be installed. If the font
  274.        family is to be used by your account only, place it in
  275.        /Library/Fonts (creating it if necessary):
  276.  
  277.  
  278.                 mkdirs ~/Library/Fonts
  279.                 mv Shalom-*.font ~/Library/Fonts
  280.                 buildafmdir ~/Library/Fonts
  281.  
  282.  
  283.        If everybody on your system should have access to this font
  284.        family, place it (as superuser) in /LocalLibary/Fonts:
  285.  
  286.  
  287.                 su
  288.                 mkdirs /LocalLibrary/Fonts
  289.                 mv Shalom-*.font /LocalLibrary/Fonts
  290.                 buildafmdir /LocalLibrary/Fonts
  291.                 exit
  292.  
  293.  
  294.    That's all you need to do for fonts generated by Fontographer version
  295.    3.2 or above. This will work with all applications that use AppKit's
  296.    FontPanel. FrameMaker does not, so other changes may need to be done
  297.    to keep FrameMaker happy [does anybody have something to add here?].
  298.  
  299.    Fonts generated by Fontographer version 3.1 or below don't work in
  300.    Display PostScript as they are, because they use a memory management
  301.    trick that screws everything up in a multitasking environment like
  302.    DPS. However, there is a simple, though kludgy, way to make them work.
  303.  
  304.  
  305.    The problematic trick uses a dictionary with a name like "Fog3.1"
  306.    ("Casa1" in Casady & Green's fonts) in which most of the font resides.
  307.    The problem is that Fontographer puts that whole dictionary into
  308.    dictionary 'userdict' and expects it to stay there. DPS, however,
  309.    clears out 'userdict' between tasks, including the task that loads the
  310.    font and the task that uses it. This makes the font useless on the
  311.    screen, and printable only by prepending the outline font file to the
  312.    file you want to print and sending the result to print in one task.
  313.  
  314.    The fix is to move the troublesome dictionary from 'userdict' into the
  315.    font dictionary itself (unlike 'userdict', the font dictionary does
  316.    stick around between tasks).
  317.  
  318.    Perform the following changes in the outline font file (the font
  319.    CyrillicGothic is used as the example):
  320.  
  321.  
  322.      * Find the line "%%EndProlog". It will be followed by the line like
  323.        this:
  324.  
  325.  
  326.                         /\$CyrillicGothic 23 dict def \$CyrillicGothic begin
  327.  
  328.  
  329.        Write down the number before 'dict' (in this case, 23). You will
  330.        need it in the following step. Delete the dict definition, making
  331.        the line look like this:
  332.  
  333.  
  334.                         \$CyrillicGothic begin
  335.  
  336.  
  337.      * Go back to the beginning of the file. near the top of the font
  338.        program, find the following lines:
  339.  
  340.  
  341.                         userdict/Fog3.1 known\{\{currentfile(   )readstring
  342.                                 \{(\%\%\%)eq\{exit\}if\}{pop exit\}ifelse\}loop
  343. \}if
  344.                         userdict begin/Fog3.1 45 dict def Fog3.1 begin
  345.  
  346.  
  347.        and replace them with these:
  348.  
  349.  
  350.                         /\$CyrillicGothic 24 dict def
  351.                         \$CyrillicGothic begin/Fog3.1 45 dict def Fog3.1 begin
  352.  
  353.  
  354.        The number before 'dict' (in this case, 24) is one greater than
  355.        the number you wrote down in the previous step.
  356.  
  357.      * Find the line that defines procedure BuildChar:
  358.  
  359.  
  360.                 /BuildChar{Fog3.1/BuildChar get exec}def
  361.  
  362.    and change it as follows:
  363.  
  364.  
  365.                 /BuildChar{1 index begin Fog3.1/BuildChar get exec end}def
  366.  
  367.  
  368.      * Go to the end of the file. The last line looks like this:
  369.  
  370.  
  371.                 /CyrillicGothic findfont/EFN get Fog3.1 begin\{RF\}forall end
  372.  
  373.    Delete it (or comment it out by placing one or more " beginning of
  374.        it).
  375.  
  376.        The AFM file requires one adjustment. Change the line
  377.  
  378.  
  379.         EncodingScheme AppleStandard
  380.  
  381.    to
  382.  
  383.  
  384.         EncodingScheme AdobeStandardEncoding
  385.  
  386.  
  387.    This concludes conversion of a font generated by Fontographer version
  388.    3.1 or lower to work with NEXTSTEP. You may still need to make the
  389.    changes described for version 3.2 and above, to make the font fit the
  390.    NEXTSTEP font panel.
  391.  
  392. 8.8 What color printers (laser or otherwise) may be used with NEXTSTEP?
  393.  
  394.    printer, color
  395.  
  396.    The (no longer sold) NeXT/Canon SCSI color printer, of course!
  397.  
  398.    With Dots Color, the HP DeskJet 500C can print in color today, under
  399.    NEXTSTEP 2.1, and it costs significantly less than $1000 (in Germany
  400.    at least).
  401.  
  402.    You can get more information from:
  403.  
  404.  
  405.                 d'ART Software GmbH
  406.                 Virchowstr. 17-19
  407.                 W-2000 Hamburg 50
  408.                 Germany
  409.                 Voice:  +49 40 380 23 0
  410.                 Fax:    +49 40 380 23 290
  411.                 software@dart.de
  412.  
  413.  
  414.    JetPilot from Interpersonal Computer does this jobs also very well.
  415.    You can get more information from:
  416.  
  417.  
  418.                 interpersonal computing GmbH
  419.                 Oettingenstrasse 2
  420.                 W-80538 Muenchen
  421.                 Germany
  422.                 Voice:  +49 89 22 28 63
  423.                 Fax:    +49 89 22 33 76
  424.                 info@interpc.de
  425.  
  426.  
  427. 8.9 How can I make the Page Layout default to A4 in all applications?
  428.  
  429.    A4 default size
  430.  
  431.    Add "NXPaperType A4" in the "GLOBAL" preferences.
  432.  
  433. 8.10 /usr/lib/NextPrinter/Server/pstf: syntax error at line 31: `end of file'
  434. unexpected?
  435.  
  436.  
  437.    Using lpr -t, or lpr -d causes this problem. eg:
  438.  
  439.  
  440.         [...]
  441.         cat /usr/lib/NextPrinter/Server/pstf
  442.         [...]
  443.  
  444.  
  445.    Christopher Lane has pointed out 3 (three!) errors in the distributed
  446.    NEXTSTEP 3.0 lpd.comm file
  447.  
  448.    The last change is my own. It worked for the 1 (one!) dvi file I
  449.    tried.
  450.  
  451.  
  452.         tilley\% diff lpd.comm.DIST lpd.comm
  453.  
  454.         11,12c11,12
  455.         < while "x\$1" != x do
  456.         <     case "\$1" in
  457.         ---
  458.         > while test \$\# != 0
  459.         > do  case "\$1" in
  460.         16c16
  461.         <       -h) HOST=\$"; shift;;
  462.         ---
  463.         >       -h) HOST=\$2; shift;;
  464.         17a18
  465.         >     esac
  466.         21c22
  467.         < PRSERVER="/usr/lib/NextPrinter/Server/prserver -p \$PRINTER -n \$USER
  468.  -h HOST -f -"
  469.         ---
  470.         > PRSERVER="/usr/lib/NextPrinter/Server/prserver -p \$PRINTER -n \$USER
  471.  -h \$HOST -f -"
  472.         27c28
  473.         <     psdf) psbad \$FILTER \$PRINTER \$USER \$HOST | \$PRSERVER;;
  474.         ---
  475.         >     psdf) dvips -f -D 400 -r  | \$PRSERVER ;;
  476.  
  477.  
  478. 8.11 How to get TeX with NEXTSTEP to make proper fonts for a 600 dpi
  479. laserwriter?
  480.  
  481.    600dpi TeX fonts TeX, 600dpi
  482.  
  483.    If you upgrade to a 600 dpi laserwriter then the version of TeX that
  484.    ships with NEXTSTEP (either 2.X or 3.0) does not know about 600 dpi
  485.    fonts, i.e. does not know how to make them and will instead use scaled
  486.    400 dpi ones (which look significantly worse at 600 dpi than they do
  487.    at 400 dpi). Some simple modifications to a few Metafont files and
  488.    rebuilding the metafont bases are all that is needed. What to do to
  489.    get the 600 dpi stuff working is as follows:
  490.  
  491.      * Edit /usr/lib/mf/inputs/next.mf and add a laserjetIV mode. Simply
  492.        copy the entire imagen mode, change the name to laserjetIV, and
  493.        change the pixels_per_inch to 600. Save the changed file.
  494.  
  495.      * Build a new mf.base file by executing the following commands:
  496.  
  497.  
  498.                 inimf "plain; input next; dump"
  499.                 (as superuser):  cp plain.base /usr/lib/mf/bases/mf.base
  500.  
  501.  
  502.      * Edit /usr/lib/tex/ps/config.ps and change the `D 400' line to `D
  503.        600' (you may have `D 300' or something else if you've set up a
  504.        different printer.)
  505.  
  506.      * Edit /usr/bin/MakeTeXPK (as superuser), adding the lines
  507.  
  508.  
  509.                 elif test $BDPI = 600
  510.                 then
  511.                         MODE=laserjetIV
  512.  
  513.    right before the second `else' in the file.
  514.  
  515.  
  516.    That should do it! You might have to (depending on how you configure
  517.    NEXTSTEP for the LaserJet IV) select `custom resolution' and set the
  518.    gadget to 600 in the TeXview print panel, and save Preferences. These
  519.    instructions are written for an HP Laserjet IV, but they should also
  520.    work for a QMS printer just fine.
  521.  
  522.    Finally, if you have one of these printers and work in a "mixed"
  523.    environment with perhaps 400 dpi and/or 300 dpi printers that you also
  524.    print to on a regular basis then you might want to consider getting
  525.    Type 1 PS version of the Computer Modern fonts instead. They obviate
  526.    the need for the instructions above, and the savings in disc space
  527.    will be considerable since having printer fonts for several printers
  528.    takes lots of room, and the file sizes for 600 dpi are quite large
  529.    (the files grow roughly as D logD, where D is the resolution). These
  530.    fonts are made by Blue Sky Research, and work beautifully. Y&Y
  531.    software is a reseller for BSR and sells a "NEXTSTEP specific" version
  532.    of them which comes with appropriate instructions and installation
  533.    scripts.
  534.  
  535. 8.12 How to get printer description files (PPD)?
  536.  
  537.    PPD, where? printer description files, PPD
  538.  
  539.    Adobe has a mail server and ftp site where you can get .PPD files.
  540.    They are:
  541.  
  542.  
  543.                 ps-file-server@adobe.com (put "send help" in the mail body)
  544.                 ftp.mv.us.adobe.com
  545.  
  546.  
  547. 8.13 What are the Canon part numbers for ink cartridges equivalent to those
  548. NeXT's Color Printer uses?
  549.  
  550.    ink cartridge, Canon Canon, ink cartridge
  551.  
  552.    Part Numbers are:
  553.  
  554.  
  555.                 Red:    BJI-643 M
  556.                 Yellow: BJI-643 Y
  557.                 Blue:   BJI-643 C
  558.                 Black:  BJI-643 Bk
  559.  
  560.  
  561. 8.14 JetPilot does not work with my JetDirect box, why?
  562.  
  563.    JetPilot, JetDirect JetDirect, JetPilot
  564.  
  565.    It seems, that there is a bug in the /etc/rc-script. The bootpd is
  566.    given with to arguments -a -f, which are not available for the bootpd
  567.    under 3.3.
  568.  
  569.    Make an entry in /etc/bootptab like this:
  570.  
  571.  
  572.         \#
  573.         \# host  htype   haddr                   iaddr             bootfile
  574.         \#
  575.         printer 1       XX:XX:XX:XX:XX:XX       XXX.XXX.XXX.XXX
  576.  
  577.  
  578.    where
  579.      * host: your given hostname for the printer (eg. picasso)
  580.      * haddr: The Ethernet hardware address (Can be seen, if you press
  581.        the TEST-Key on your JetDirect box.
  582.      * iaddr: Is the hostaddress for the printer (eg. 192.42.172.1)
  583.  
  584.  
  585.    Entries have to be done also in the Netinfo-database. It's like adding
  586.    a new host.
  587.  
  588.    Insert the following line to your etc/rc.local script:
  589.  
  590.  
  591.         \#
  592.         \# Starting JetDirect-Printer configuration
  593.         \#
  594.         fbshow -B -I "Starting Printer initialization" -z 92
  595.         /usr/etc/bootpd -d /etc/bootptab                >/dev/console 2>\&1
  596.  
  597.  
  598. 8.15 powering down NeXTprinter during bootup, printer still works
  599.  
  600.    power down, printer printer, printer down
  601.  
  602.    Type the following to your rc.local.
  603.  
  604.  
  605.         \#turn off NeXT laser printer.
  606.         fbshow -B -I "Powering off NeXTprinter" -z 95
  607.         if [ -f /usr/etc/nppower ]; then
  608.                 sleep 3
  609.                 /usr/etc/nppower off
  610.                 (echo 'powering off NeXTprinter')               >/dev/console
  611.         fi
  612.  
  613.  
  614.    This works fine... the printer powers down immediately, and is
  615.    available for any app which wants it.
  616.  
  617. 8.16 How to set up the HP LaserJet 4M?
  618.  
  619.    HP Laserjet 4M
  620.  
  621.    I solved the problem by building a serial cable based upon the pinouts
  622.    supplied by HP in their manual. Please note that the LJIII cable does
  623.    not work. In particular, pin 1 from the DIN plug must be connected to
  624.    pin 6 of the DB25. I used 38500 bps on both sides, and the 600 dpi
  625.    ppd.
  626.  
  627.    Emulex offers the NETJet network interface which speaks lpd protocol,
  628.    unlike the HP unit.
  629.  
  630. 8.17 Laserwriter NTX & NEXTSTEP
  631.  
  632.    Laserwriter NTX
  633.  
  634.    This are the pin assignments.
  635.  
  636.  
  637.         Eight-pin mini DIN-8 RS-422 Port
  638.         Pin    Signal    Description
  639.  
  640.         1,3     SG        Signal Ground
  641.         4       TxD+      Transmit Data +
  642.         5       TxD-      Transmit Data -
  643.         8       RxD+      Receive Data +
  644.         9       RxD-      Receive Data -
  645.  
  646.         IBM-compatible DB-25 Plug     LaserWriter DB-25 Plug
  647.         Signal         Pin            Pin           Signal
  648.  
  649.         Shield          1 ............ 1            Shield
  650.         TxD             2 ............ 3            RxD
  651.         RxD             3 ............ 2            TxD
  652.         RTS             4 ............ 4            RTS
  653.         CTS             5 ............ 5            CTS
  654.         DSR             6 ............ 8            DCD
  655.         GND             7 ............ 7            GND
  656.                           ............ 20           DTR
  657.  
  658.  
  659.    The other aspect is to set the DIP switch on the printer. Here are the
  660.    DIP switch settings:
  661.  
  662.  
  663.         Switch 1   Switch 2    Meaning
  664.  
  665.         UP         UP          LocalTalk---RS-232 port disabled
  666.         DOWN       UP          Serial ports at 1200 Baud
  667.         UP         DOWN        Serial ports at 9600 Baud
  668.         DOWN       DOWN        RS-232 at 9600 Baud; RS-422 at 0 Baud
  669.  
  670.  
  671.    Switches 3 and 4 can probably be ignored---they're for strange stuff
  672.    like Diablo 630 and HP LaserJet emulation modes.
  673.  
  674.  
  675.         Switch 5        Switch 6        Meaning
  676.  
  677.         DOWN            DOWN            XON/XOFF
  678.         UP              UP              XON/XOFF
  679.         DOWN            UP              ETX/ACK
  680.         UP              DOWN            DSR
  681.  
  682.  
  683.      _________________________________________________________________
  684.  
  685.      * (weiter mit 9 Obsolete but still interesting?)
  686.  
  687.  
  688.      _________________________________________________________________
  689.  
  690.    This document was converted from LaTeX using Karl Ewald's latex2html.